import { reactive } from 'vue';

const state = reactive({
  isChinese: true // 默认语言状态
});

const toggleLanguage = () => {
  state.isChinese = !state.isChinese; // 切换语言状态
};

const setLanguage = (isChinese) => {
  state.isChinese = isChinese; // 设置语言状态
};

export default {
  state,
  toggleLanguage,
  setLanguage
};